package com.garmin.tw.garminpcsync.common.domain.xmlrpc;

import java.io.Serializable;

public class PreloadMapUpdateResult implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1760786632692174014L;
	
	private Integer returnCode = -1;
	
	private String latestSku;
	
	private String latestVersion;
	
	private String description;
	
	private String releaseNote;
	
	private String serverPath;
	
	private String fileName;
	
	private Integer fileSize;
	
	private String md5;
	
	private String unlockCode;
	
	private String gmaFile;

	/**
	 * Gets the return code of this device, and only in following list:<br>
	 * <ul>
	 * <li> 1: Success<br>
	 * <li>11: No Such Account<br>
	 * <li>12: Incorrect Password<br>
	 * <li>13: Account Locked<br>
	 * <li>14: Wrong Device Owner<br>
	 * <li>15: Device not registered<br>
	 * <li>21: Cannot find the ESN<br>
	 * <li>22: Not Supported Device GPN<br>
	 * <li>41: Cannot find the latest Map data<br>
	 * <li>43: Cannot be free upgrade<br>
	 * <li>-1: Error<br>
	 * <li>-2: Missing required parameters<br>
	 * @return the return code of this device
	 */
	public Integer getReturnCode() {
		return returnCode;
	}

	/**
	 * Sets the return code of this device.
	 * @param returnCode
	 */
	public void setReturnCode(Integer returnCode) {
		this.returnCode = returnCode;
	}

	/**
	 * Gets the latest map GPN of this device.
	 * @return the latest map GPN of this device
	 */
	public String getLatestSku() {
		return latestSku;
	}

	/**
	 * Sets the latest map GPN of this device.
	 * @param latestSku
	 */
	public void setLatestSku(String latestSku) {
		this.latestSku = latestSku;
	}

	/**
	 * Gets the latest map version of this device.
	 * @return the latest map version of this device
	 */
	public String getLatestVersion() {
		return latestVersion;
	}

	/**
	 * Sets the latest map version of this device.
	 * @param latestVersion
	 */
	public void setLatestVersion(String latestVersion) {
		this.latestVersion = latestVersion;
	}

	/**
	 * Gets the description of update map.
	 * @return the description of update map
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * Sets the description of update map.
	 * @param description
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * Gets the release note of update map.
	 * @return the release note of map
	 */
	public String getReleaseNote() {
		return releaseNote;
	}

	/**
	 * Sets the release note of update map.
	 * @param releaseNote
	 */
	public void setReleaseNote(String releaseNote) {
		this.releaseNote = releaseNote;
	}

	/**
	 * Gets the server path of this map update file.
	 * @return the server path of this map update file
	 */
	public String getServerPath() {
		return serverPath;
	}

	/**
	 * Sets the server path of this map update file.
	 * @param serverPath
	 */
	public void setServerPath(String serverPath) {
		this.serverPath = serverPath;
	}

	/**
	 * Gets the name of this map update file.
	 * @return the name of this map update file
	 */
	public String getFileName() {
		return fileName;
	}

	/**
	 * Sets the name of this map update file.
	 * @param fileName
	 */
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	/**
	 * Gets the size of this map update file.
	 * @return the size of this map update file
	 */
	public Integer getFileSize() {
		return fileSize;
	}

	/**
	 * Sets the size of this map update file.
	 * @param fileSize
	 */
	public void setFileSize(Integer fileSize) {
		this.fileSize = fileSize;
	}

	/**
	 * Gets the checksum of this map update file.
	 * @return the checksum of this map update file
	 */
	public String getMd5() {
		return md5;
	}

	/**
	 * Sets the checksum of this map update file.
	 * @param md5
	 */
	public void setMd5(String md5) {
		this.md5 = md5;
	}

	/**
	 * Gets the map unlock code of this device.
	 * @return the map unlock code of this device
	 */
	public String getUnlockCode() {
		return unlockCode;
	}

	/**
	 * Sets the map unlock code of this device.
	 * @param unlockCode
	 */
	public void setUnlockCode(String unlockCode) {
		this.unlockCode = unlockCode;
	}

	/**
	 * Gets the GMA file of this device in BASE64 string.
	 * @return the GMA file of this device in BASE64 string
	 */
	public String getGmaFile() {
		return gmaFile;
	}

	/**
	 * Sets the GMA file of this device in BASE64 string.
	 * @param gmaFile
	 */
	public void setGmaFile(String gmaFile) {
		this.gmaFile = gmaFile;
	}
}
